#pragma once

class InstanceChecker
{
public:
	InstanceChecker(HWND hWnd);
	~InstanceChecker();
	bool previousInstanceRunning();
	void activatePreviousInstance();
	void UpdateFrameWndHandle(HWND hFrameWnd);
	void exitInstance();

protected:
	void MakeLowProcessAccess(LPCTSTR);
	HANDLE m_hPrevInstance;
	HANDLE m_hSingleInstance;
	HWND m_hWnd;
};

